package jobs.controller;

import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import jobs.pattern.design.ControllerComposite;
import jobs.pattern.design.DAOComposite;
import jobs.model.Rol;
import jobs.model.dao.RolDAO;

/**
 *
 * @author Paul Tamayo
 */
@ManagedBean(name = "roles")
@SessionScoped
public class RolController extends ControllerComposite<Rol> {

    @EJB
    private RolDAO dao;

    public RolController() {
        super(Rol.class);
    }

    @Override
    public DAOComposite<Rol> getDAO() {
        return dao;
    }
}
